 

package com.hs.core.dao;

import java.util.*;

import com.hs.core.model.BaseBean;
 
public interface IDao {
		 
	public void saveObject(BaseBean baseBean) ; 
	public void update(BaseBean baseBean) ; 
	public void save(BaseBean baseBean) ;
	public void deleteObject(BaseBean baseBean) ;
	public void deleteList(Collection list) ;
	 
	public Object findByID(Class entityClass,Long id) ;
	 
	public Object findByID(Class entityClass,String id) ;
     
    public void delAllResultByProperty(Class clas,String propertyName,List valueList);
     
    public void delAllResultByProperty(Class clas,String propertyName,Object value);
 
    public Object findByExampleUnique(Class classObj,Object exampleObj);
     
    public List findByExample(Class classObj,Object exampleObj);
     
	public List findList(String hql,Object param);
	 
	public List findList(String hql); 
	public void saveOrUpdateAll(Collection list);

}
